﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="ACM_INVENTORY_Control.aspx.cs" Inherits="KPIS.GERP.GAMS.APP.App_UI.Forms.ACM_INVENTORY_Control" %>

<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="head">
    <title>จำแนกพัสดุ</title>
    <link href="../CssClass.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Body" runat="server" contentplaceholderid="ContentPlaceHolder1" >

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
        OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel2" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="PanelData" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="Panel1" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelInventory" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelAsset" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="PanelData">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel2" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="PanelData" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="Panel1" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelInventory" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelAsset" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Panel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel2" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="PanelData" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="Panel1" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelInventory" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelAsset" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="panelInventory">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel2" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="PanelData" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="Panel1" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelInventory" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelAsset" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="panelAsset">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel2" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="PanelData" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="Panel1" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelInventory" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="panelAsset" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
</telerik:RadAjaxManager>
    
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
        
            function openWin(ControlName)
            {
                var oWnd = radopen("ACM_POPUP.aspx?ControlName=" + ControlName, "RadWindow1");
            }
            function OnClientClose(oWnd,args)
            {
                //get the transferred arguments
                var arg = args.get_argument();
                if(arg)
                { 
                    var account_seq = arg.account_seq;
                    var ControlName = arg.ControlName;
                    
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(account_seq + "|" + ControlName);
                }
            }
            function OnTextChange(sender) {
                if (sender.get_value() == "") {
                    sender.set_text("");
                }
            }
            
        </script>
</telerik:RadCodeBlock>
    
<div class="moduleContent1000">
           <div class="moduleDivBottom1000">
                 <asp:Panel ID="Panel2" runat="server" CssClass="contentPaneDiv" Height="30px" ScrollBars="Auto" >
                      <div class = "RHeader" align = "center">
                         </div>    
                             <table cellpadding="0" cellspacing="0" align = "right" >
                               <tr>
                                        <td>
                                               <asp:Label ID="lblInventoryType" runat="server" Text="ประเภทพัสดุ" />
                                            
                                            <telerik:RadComboBox ID="cmbInventoryType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="cmbInventoryType_OnSelectedIndexChanged">
                                            </telerik:RadComboBox>
                                        </td>
                                        <td>&nbsp;&nbsp;</td>
                                        <td><asp:Label ID="lblStatus" runat="server" Text="สถานะของข้อมูล" ForeColor="Orange" Font-Size="Large" Font-Bold="true"></asp:Label></td>
                                        <td width="100px" class="controls">
                                            <asp:LinkButton ID="btnSave" runat="server" CssClass="LinkButton" onclick="btnSave_Click" CausesValidation="true">
                                                <img alt="" id="imgSave" runat="server" src="~/App_UI/Images/Buttons/saveDisk.gif" title="บันทึกข้อมูล" width="17"/> บันทึกข้อมูล
                                            </asp:LinkButton>                                            
                                        </td>
                                        <td width="100px" class="controls">
                                            <asp:LinkButton ID="btnCancel" runat="server" CssClass="LinkButton" onclick="btnCancel_Click" CausesValidation="False">
                                                <img alt="" id="imgCancel" runat="server" src="~/App_UI/Images/Buttons/Cancel.gif" title="ยกเลิกการแก้ไข" width="17"/> ยกเลิกการแก้ไข
                                            </asp:LinkButton>
                                        </td>
                               </tr>
                            </table> 
                 </asp:Panel>
           </div>
</div>

<div class="moduleContent1000">
              <div class="moduleDivBottom1000">
                         <asp:Panel ID="PanelData" runat="server" CssClass="contentPaneDiv"  higth="900px"  ScrollBars="Auto"  align = "center">    
                           <table>
                               <tr>
                                   <td>
                                      <asp:Panel ID="Panel1" runat="server" CssClass="contentPaneDiv"  higth="500px" ScrollBars="Auto" align = "left" >    
                                            <telerik:RadGrid ID="grdInventory" runat="server" AutoGenerateColumns="false"
                                                        AllowMultiRowEdit="false" AllowMultiRowSelection="true" 
                                                        Width="922px" Height="289px" AllowPaging="true" AllowFilteringByColumn="true"
                                                        GroupingSettings-GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;"
                                                        GroupingSettings-GroupContinuedFormatString=""
                                                        GroupingSettings-GroupContinuesFormatString=""
                                                        GroupingSettings-GroupSplitFormat="" 
                                                        OnNeedDataSource="grdInventory_NeedDataSource" 
                                                        OnItemCommand="grdInventory_ItemCommand" align ="left">
                                                        <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" GroupLoadMode="Client"
                                                            DataKeyNames="resource_seq" NoMasterRecordsText="< ไม่มีข้อมูล >" GroupsDefaultExpanded="true">
                                                            <RowIndicatorColumn>
                                                                <HeaderStyle Width="20px" />
                                                            </RowIndicatorColumn>
                                                            <ExpandCollapseColumn>
                                                                <HeaderStyle Width="20px" />
                                                            </ExpandCollapseColumn>
                                                            <Columns>   
                                                                <telerik:GridTemplateColumn HeaderText="แก้ไข" AllowFiltering="false" HeaderStyle-Width="45px" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center"> 
                                                                    <FilterTemplate></FilterTemplate>
                                                                    <ItemTemplate>
                                                                        &nbsp;&nbsp;&nbsp;
                                                                            <asp:ImageButton ID="cmdEdit" runat="server" CommandName="DataEdit"
                                                                                ImageUrl="~/App_UI/Images/Buttons/Edit.gif" 
                                                                                ToolTip="แก้ไขรายการ" width="17" />
                                                                    </ItemTemplate>
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridBoundColumn DataField="resource_seq"
                                                                    HeaderText="resource_seq" UniqueName="resource_seq"
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="resource_type"
                                                                    HeaderText="resource_type" 
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="resource_descr"
                                                                    HeaderText="resource_descr" 
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false" Visible="false" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="resource_code"
                                                                    HeaderText="รหัสกลุ่มพัสดุ" 
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" HeaderStyle-Width="120px"
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="resource_name"
                                                                    HeaderText="ชื่อกลุ่มพัสดุ" 
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn><%--HeaderStyle-Width="200px"--%>
                                                                <telerik:GridBoundColumn DataField="asset_account_name"
                                                                    HeaderText="รหัสบัญชีสินทรัพย์" UniqueName="asset_account" HeaderStyle-Width="120px"
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="cumdepre_account_name" 
                                                                    HeaderText="รหัสบัญชีค่าเสื่อมราคาสะสม" HeaderStyle-Width="120px" UniqueName="cumdepre_account"
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true"
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false"
                                                                    HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="depre_account_name"
                                                                    HeaderText="รหัสบัญชีค่าเสื่อมราคา" HeaderStyle-Width="120px" UniqueName="depre_account"
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="consume_account_name" 
                                                                    HeaderText="รหัสบัญชีวัสดุใช้ไป" HeaderStyle-Width="120px" UniqueName="consume_account"
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="break_account_name" 
                                                                    HeaderText="รหัสบัญชีพักพัสดุ" HeaderStyle-Width="120px" UniqueName = "break_account"
                                                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                                                    CurrentFilterFunction="Contains" ShowFilterIcon="false" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center">
                                                                </telerik:GridBoundColumn>
                                                            </Columns>
                                                            <PagerStyle Mode="NumericPages" AlwaysVisible="true" 
                                                                        FirstPageToolTip="กลับหน้าแรก" LastPageToolTip="ไปหน้าสุดท้าย" 
                                                                        NextPagesToolTip="หน้าถัดไป" NextPageToolTip="หน้าถัดไป" 
                                                                        PrevPagesToolTip="ย้อนกลับ" PrevPageToolTip="ย้อนกลับ" /> 
                                                                </MasterTableView>
                                                                <GroupingSettings GroupByFieldsSeparator="&nbsp;&nbsp;&nbsp;&nbsp;" 
                                                                                  GroupContinuedFormatString="" GroupContinuesFormatString="" 
                                                                                  GroupSplitFormat="" />
                                                                <ClientSettings EnableRowHoverStyle="True">
                                                                    <Selecting AllowRowSelect="true" />
                                                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                                                </ClientSettings>
                                                     </telerik:RadGrid> 
                                      </asp:Panel>     
                                   </td>
                               </tr>
                               
                               <tr>                 
                                   <td>
                                                    <table align ="left">
                                                        <caption>
                                                            <br />
                                                            <tr>
                                                                <caption>
                                                                    <span class="TextHeader">แก้ไขรายการ</span></caption>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="99"></td>
                                                                <td align="left">
                                                                    <asp:Label ID="lblInventoryCode" runat="server" Font-Bold="true" Text="รหัสกลุ่มพัสดุ :" />
                                                                </td>
                                                                <td colspan="50"></td>
                                                                <td align="left">
                                                                    <asp:Label ID="lblpInventoryCode" runat="server" Font-Bold="true" Text="....." />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="99"></td>
                                                                <td align="left">
                                                                    <asp:Label ID="lblInventoryName" runat="server" Font-Bold="true" Text="ชื่อกลุ่มพัสดุ :" />
                                                                </td>
                                                                <td colspan="50"></td>
                                                                <td align="left">
                                                                    <asp:Label ID="lblpInventoryName" runat="server" Font-Bold="true" Text="....." />
                                                                    <asp:Label ID="hresourceseq" runat="server" Visible="false" />
                                                                </td>
                                                            </tr>
                                                        </caption>
                                                    </table>   
                              
                                   </td>
                              </tr>
                               <tr>
                                   <td>
                                            <asp:Panel ID="panelInventory" runat="server" ScrollBars="Auto" align = "center" >    
                                                    <fieldset style= "width:922px;height:70px;" id="Fieldset1">
                                                     <legend>วัสดุ</legend>
                                                          <table>
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="Label1" Text ="รหัสบัญชีสินทรัพย์ :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountasset_code_Inventory" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountasset_code_Inventory" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountasset_code_Inventory_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                              
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountasset_code_Inventory" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px" />
                                                                          </td>
                                                                 </tr>   
                                                              
                                                                <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="Label4" Text ="รหัสบัญชีวัสดุใช้ไป :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                             <%-- <telerik:RadComboBox ID="cmbaccount_consume_Inventory" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccount_consume_Inventory" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccount_consume_Inventory_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccount_consume_Inventory" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px" />
                                                                          </td>
                                                                </tr>
                                                     </table>
                                                    </fieldset>
                                            </asp:Panel>
                                            
                                             <asp:Panel ID="panelAsset" runat="server" ScrollBars="Auto" align = "center" >    
                                                    <fieldset style= "width:922px;height:140px;" id="Fieldset2">
                                                     <legend>ครุภัณฑ์</legend>
                                                          <table>
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="Label6" Text ="รหัสบัญชีสินทรัพย์ :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountasset_code_asset" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountasset_code_asset" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountasset_code_asset_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                              
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountasset_code_asset" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px"/>
                                                                          </td>
                                                                 </tr>   
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="Label7" Text ="รหัสบัญชีค่าเสื่อมราคาสะสม :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountcumdepre_code_asset" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountcumdepre_code_asset" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountcumdepre_code_asset_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountcumdepre_code_asset" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px"/>
                                                                          </td>
                                                                 </tr>
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="Label8" Text ="รหัสบัญชีค่าเสื่อมราคา :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountdepre_code_asset" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountdepre_code_asset" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountdepre_code_asset_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountdepre_code_asset" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px" />
                                                                          </td>
                                                                </tr>
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="Label10" Text ="รหัสบัญชีพักพัสดุ :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountbreak_code_asset" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountbreak_code_asset" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountbreak_code_asset_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountbreak_code_asset" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px"/>
                                                                          </td>
                                                                </tr>        
                                                     </table>
                                                    </fieldset>
                                            </asp:Panel>
                                            
                                             <asp:Panel ID="panelLocality" runat="server" ScrollBars="Auto" align = "center" >    
                                                    <fieldset style= "width:922px;height:50px;" id="Fieldset3">
                                                     <legend>ที่ดิน</legend>
                                                          <table>
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="Label11" Text ="รหัสบัญชีสินทรัพย์ :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountasset_code_locality" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountasset_code_locality" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountasset_code_locality_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                              
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountasset_code_locality" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px"/>
                                                                          </td>
                                                                 </tr>   
                                                     </table>
                                                    </fieldset>
                                            </asp:Panel>
                                            
                                            <asp:Panel ID="panelConstruct" runat="server" ScrollBars="Auto" align = "center" >    
                                                    <fieldset style= "width:922px;height:140px;" id="fsAsset">
                                                     <legend>สิ่งก่อสร้าง</legend>
                                                          <table>
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="lblAccountAssetCode" Text ="รหัสบัญชีสินทรัพย์ :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountasset_code_construct" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountasset_code_construct" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountasset_code_construct_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                              
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountasset_code_construct" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px"/>
                                                                          </td>
                                                                 </tr>   
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="lblAccumlateDepre" Text ="รหัสบัญชีค่าเสื่อมราคาสะสม :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountcumdepre_code_construct" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountcumdepre_code_construct" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountcumdepre_code_construct_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountcumdepre_code_construct" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px"/>
                                                                          </td>
                                                                 </tr>
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="lblDepreciate" Text ="รหัสบัญชีค่าเสื่อมราคา :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountdepre_code_construct" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountdepre_code_construct" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountdepre_code_construct_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountdepre_code_construct" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px"/>
                                                                          </td>
                                                                </tr>
                                                                 <tr>
                                                                          <td align="left"><asp:Label runat="server" ID="lblAccountBreak" Text ="รหัสบัญชีพักสิ่งก่อสร้าง :" Font-Bold="true"/>
                                                                          </td>
                                                                          <td align="left">
                                                                              <%--<telerik:RadComboBox ID="cmbaccountbreak_code_construct" Runat="server" 
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        Filter="Contains" DropDownWidth="350px" EmptyMessage="< กรุณาเลือกรหัสบัญชี >"
                                                                                         Width="350" Enabled="false">
                                                                              </telerik:RadComboBox>--%>
                                                                              <telerik:RadComboBox ID="cmbaccountbreak_code_construct" Runat="server"
                                                                                        DataTextField="account_code_name" DataValueField="account_seq" 
                                                                                        EnableLoadOnDemand="true" 
                                                                                        ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                                        EmptyMessage="< เลือกรายการ >" AllowCustomText="true" Filter="Contains"
                                                                                        OnClientTextChange="OnTextChange"
                                                                                        OnItemsRequested="cmbaccountbreak_code_construct_ItemsRequested" Width="350px">
                                                                            </telerik:RadComboBox>
                                                                          </td>
                                                                          <td>
                                                                              <asp:ImageButton ID="btnaccountbreak_code_construct" runat="server" ImageUrl="~/App_UI/Images/Buttons/Search.png" Width="20px"/>
                                                                          </td>
                                                                </tr>
                                                                 
                                                     </table>
                                                    </fieldset>
                                            </asp:Panel>
                                   </td>
                               </tr>    
                            </table>           
                         </asp:Panel>
             </div>
</div>

<telerik:RadWindowManager ID="RadWindowManager1" VisibleStatusbar="false" ReloadOnShow="false"
        runat="server" Skin="Vista">
        <Windows>
            <telerik:RadWindow runat="server" ID="RadWindow1"
                Width="639px" Height="625px"  Skin="Outlook" 
                VisibleStatusbar="true"
                OnClientClose="OnClientClose">
            </telerik:RadWindow> <%--OnClientResize="SetWindowBehavior"--%>
        </Windows>
</telerik:RadWindowManager>





</asp:Content>